/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef FPS_H
#define FPS_H

#include <list>

namespace liba
{

class Fps
{
	const double interval;
	std::list<double> records;
	double fps;
	double time;
public:	
	explicit Fps(double interval);
	virtual ~Fps();
	void record(double delta_time);
	double get_fps()const;
};

} // namespace liba
using namespace liba;

#endif //FPS_H